package com.carrey.cms_1810.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 作者 :
 * @version 
 * @Date 创建时间：2020-11-25 13:29:27
 * @Description 类说明 : TODO 
 */
public class Comments implements Serializable{
	
	

	/**
	 * 	序列号
	 */
	private static final long serialVersionUID = 1L;
	
	private Integer id;
	private Integer userId;
	private Integer articleId;
	private String content;
	private Date created;
	
	// 数据库忽略
	private String username;
	private String contents;
	private String title;
	
	public String getContents() {
		return contents;
	}

	public void setContents(String contents) {
		this.contents = contents;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getArticleId() {
		return articleId;
	}

	public void setArticleId(Integer articleId) {
		this.articleId = articleId;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getCreated() {
		return created;
	}

	public void setCreated(Date created) {
		this.created = created;
	}

	public Comments(Integer id, Integer userId, Integer articleId, String content, Date created) {
		super();
		this.id = id;
		this.userId = userId;
		this.articleId = articleId;
		this.content = content;
		this.created = created;
	}

	public Comments() {
		super();
	}

	@Override
	public String toString() {
		return "Comments [id=" + id + ", userId=" + userId + ", articleId=" + articleId + ", content=" + content
				+ ", created=" + created + "]";
	}
}
